
LDFLAGS = `mylibs-config --ldflags`
CFLAGS  =  -Wall -pedantic `mylibs-config --cflags` -fopenmp

ARCH = $(shell uname -m)
LAST_BUILD = $(shell cat make.log)

all: region2bath.cpp
	g++ $(CFLAGS) region2bath.cpp  -o region2bath.$(ARCH) `mylibs-config --ldflags`

allocate: allocate_region.cpp
	g++ $(CFLAGS) allocate_region.cpp  -o allocate_region.$(ARCH) `mylibs-config --ldflags`

clean:
	rm -rf region2bath.$(ARCH) *.o
